public class Main {

    public static void main(String[] args){

        Component P2 = new ComponentComposite("P2");
        Component leaf3_1 = new ComponentLeaves("T3_1");
        P2.addChild(leaf3_1);
        P2.addChild(new ComponentLeaves("T3_2"));
        Component P1 = new ComponentComposite("P1");
        P1.addChild(P2);
        P1.addChild(new ComponentLeaves("T2_2"));
        Component top = new ComponentComposite("Top");
        top.addChild(P1);
        top.addChild(new ComponentLeaves("T1_2"));
        top.addChild(new ComponentLeaves("T1_3"));

        P1.operation();
    }
}
